package com.lilosoft.business.cga.service;

import com.lilosoft.business.cga.dao.CgaCaseTacheMapper;
import com.lilosoft.business.cga.models.CgaCaseTache;
import com.lilosoft.business.cga.models.CgaCaseTacheExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 小峰
 * Date: 2019-08-28
 * Time: 14:41
 */
@Service
public class CgaCaseTacheService {
    @Autowired
    private CgaCaseTacheMapper cgaCaseTacheMapper;

    public List<CgaCaseTache> selectByCaseId(String caseId){
        CgaCaseTacheExample example= new CgaCaseTacheExample();
        CgaCaseTacheExample.Criteria criteria = example.createCriteria();
        criteria.andCaseIdEqualTo(caseId);
        return cgaCaseTacheMapper.selectByExample(example);
    }


}
